<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var rotateString = function(A, B) {
				return A.length <= B.length && (A + A).includes(B);
			};
			console.log(rotateString('abcde', 'cdeab'));
		</script>
	</body>
</html>
